|
Menu location |
---|
Drafting → Circle 2D Drafting → Circle |
Workbenches |
Draft, BIM |
Default shortcut |
C I |
Introduced in version |
0.7 |
See also |
Draft Arc, Draft Arc 3Points |
底图圆形工具通过用户输入的两个点(中心点与半径),或通过拾取切线,或上述若干组合来在当前的工作平面上创建一个圆形。它将根据Draft Tray中的Draft Linestyle来创建圆形。
此工具与Draft Arc工具的工作方式很相似,区别在于前者创建的是一个完整的圆周。要绘制椭圆形请使用Draft Ellipse工具。
两点定一圆
See also: Draft Tray, Draft Snap and Draft Constrain.
The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts (for version 1.0).
true
);否则创建的仅是一个圆形而非圆面(数据Make Face false
)。通过双击树状视图(tree view)中的元素或点击 Draft Edit按钮即可编辑对应圆形。届时,您就可将中心点与半径点移动到预定的新位置。
See also: Preferences Editor and Draft Preferences.
See also: Property editor.
A Draft Circle object is derived from a Part Part2DObject and inherits all its properties. It also has the following additional properties:
Draft
true
则创建一个面,否则仅是创建一个圆周。只有绘制完整的圆形时,本属性才会生效。Draft
circle = make_circle(radius, placement=None, face=None, startangle=None, endangle=None, support=None)
circle = make_circle(Part.Edge, placement=None, face=None, startangle=None, endangle=None, support=None)
radius
来创建一个Circle
对象。
Part.Edge
来代替radius
,但是其Curve
属性必为Part.Circle
.placement
便采用此值为中心点;否则此圆形中心点位于原点。face
为True
,则把圆形构造为一个面,即将它填充为实心圆片。startangle
与endangle
设置为不同的度数,便会启用此二参数,且目标对象表现为一个Draft Arc。示例:
import FreeCAD as App
import Draft
doc = App.newDocument()
circle1 = Draft.make_circle(200)
zaxis = App.Vector(0, 0, 1)
p2 = App.Vector(1000, 1000, 0)
place2 = App.Placement(p2, App.Rotation(zaxis, 0))
circle2 = Draft.make_circle(500, placement=place2)
p3 = App.Vector(-1000, -1000, 0)
place3 = App.Placement(p3, App.Rotation(zaxis, 0))
circle3 = Draft.make_circle(750, placement=place3)
doc.recompute()